package User;

import Ioperate.Ioperate;
import book.Book;
import book.BookList;

/**
 * @Author liangzai
 * @Description:
 */
public abstract class User {
    private String name;
    Ioperate[] ioperates = new Ioperate[10];

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doIoperate(int choice, BookList bookList){
        ioperates[choice].work(bookList);
    }
}
